/**
 * <copyright>
 * </copyright>
 *
 */
package co.edu.unal.research.contentprovider.contentProviderDsl.impl;

import co.edu.unal.research.contentprovider.contentProviderDsl.*;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class ContentProviderDslFactoryImpl extends EFactoryImpl implements ContentProviderDslFactory
{
  /**
   * Creates the default factory implementation.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static ContentProviderDslFactory init()
  {
    try
    {
      ContentProviderDslFactory theContentProviderDslFactory = (ContentProviderDslFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.edu.co/unal/research/contentprovider/ContentProviderDsl"); 
      if (theContentProviderDslFactory != null)
      {
        return theContentProviderDslFactory;
      }
    }
    catch (Exception exception)
    {
      EcorePlugin.INSTANCE.log(exception);
    }
    return new ContentProviderDslFactoryImpl();
  }

  /**
   * Creates an instance of the factory.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ContentProviderDslFactoryImpl()
  {
    super();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public EObject create(EClass eClass)
  {
    switch (eClass.getClassifierID())
    {
      case ContentProviderDslPackage.CONTENT_PROVIDER: return createContentProvider();
      case ContentProviderDslPackage.CONFIGURATION: return createConfiguration();
      case ContentProviderDslPackage.TABLE: return createTable();
      case ContentProviderDslPackage.TABLE_COLUMN: return createTableColumn();
      case ContentProviderDslPackage.ADDITIONAL_FEATURE: return createAdditionalFeature();
      case ContentProviderDslPackage.COLUMN_TYPE: return createColumnType();
      case ContentProviderDslPackage.TABLE_WRAP: return createTableWrap();
      case ContentProviderDslPackage.DATA_TYPE: return createDataType();
      case ContentProviderDslPackage.INTEGER_DATA_TYPE: return createIntegerDataType();
      case ContentProviderDslPackage.REAL_DATA_TYPE: return createRealDataType();
      case ContentProviderDslPackage.TEXT_DATA_TYPE: return createTextDataType();
      case ContentProviderDslPackage.BLOB_DATA_TYPE: return createBlobDataType();
      default:
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
    }
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ContentProvider createContentProvider()
  {
    ContentProviderImpl contentProvider = new ContentProviderImpl();
    return contentProvider;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Configuration createConfiguration()
  {
    ConfigurationImpl configuration = new ConfigurationImpl();
    return configuration;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Table createTable()
  {
    TableImpl table = new TableImpl();
    return table;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public TableColumn createTableColumn()
  {
    TableColumnImpl tableColumn = new TableColumnImpl();
    return tableColumn;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public AdditionalFeature createAdditionalFeature()
  {
    AdditionalFeatureImpl additionalFeature = new AdditionalFeatureImpl();
    return additionalFeature;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ColumnType createColumnType()
  {
    ColumnTypeImpl columnType = new ColumnTypeImpl();
    return columnType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public TableWrap createTableWrap()
  {
    TableWrapImpl tableWrap = new TableWrapImpl();
    return tableWrap;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public DataType createDataType()
  {
    DataTypeImpl dataType = new DataTypeImpl();
    return dataType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public IntegerDataType createIntegerDataType()
  {
    IntegerDataTypeImpl integerDataType = new IntegerDataTypeImpl();
    return integerDataType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public RealDataType createRealDataType()
  {
    RealDataTypeImpl realDataType = new RealDataTypeImpl();
    return realDataType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public TextDataType createTextDataType()
  {
    TextDataTypeImpl textDataType = new TextDataTypeImpl();
    return textDataType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public BlobDataType createBlobDataType()
  {
    BlobDataTypeImpl blobDataType = new BlobDataTypeImpl();
    return blobDataType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ContentProviderDslPackage getContentProviderDslPackage()
  {
    return (ContentProviderDslPackage)getEPackage();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @deprecated
   * @generated
   */
  @Deprecated
  public static ContentProviderDslPackage getPackage()
  {
    return ContentProviderDslPackage.eINSTANCE;
  }

} //ContentProviderDslFactoryImpl
